# #定义一个方法，方法的功能是将传入该方法的两个数字进行加法运算，并输出其结果。
# def numSum(num1,num2):
#
#     print(num1+num2);
#
# numSum(34,45)
# numSum(4523,45)
# numSum(34,2578)
# numSum(34,22424)
# numSum(4545,45)
#
# #定义一个方法，将传入该方法中的列表最大数求出并返回
def findListMax(num_list):

    max_num = num_list[0];

    for i in num_list:

        if max_num < i:

            max_num = i;

    return max_num;
#
# list1_max = findListMax([2,45,78,7,5,6,4])
# print(list1_max)
#
# list2_max = findListMax([78,455,621,4,5,777,884,6])
# print(list2_max)

# lists = [78,455,621,4,5,777,884,6]
#
# for i in range(len(lists)):
#
#     print(lists[i])


